﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace vbTocs
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //string s;
            //s = "12g";
            //string s2 = s.Substring(0, s.Length - 1);
            ////System.Double  d1=Convert.ChangeType(s2,System.Double. );
            //double d1;
            //System.Double.TryParse(s2,out d1);
            //MessageBox.Show(d1.ToString()); 
            ////MessageBox.Show(s.Substring(1,s.Length -1)); 
            DateTime s=System.DateTime.Now;
            //s.ToLongDateString
            DateTime d1, d2;
            int months = 3;
            d2 = Convert.ToDateTime(s.ToLongDateString() + " 23:59:59");
            d1 =s.AddMonths(months);// DateAndTime.DateAdd(Microsoft.VisualBasic.DateInterval.Month, months, d2);
            d1 = d1.AddSeconds(1);//DateAndTime.DateAdd(Microsoft.VisualBasic.DateInterval.Second, 1, d1);
        }
    }
}
